package com.shyroke.daydayzhuanapi.entity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@Entity
@Table(name = "submit_art")
public class SubmitArtEntity extends BaseEntity implements Serializable {

    private String title;

    private String projectName;

    private String summary;

    private Date createTime;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "create_id",referencedColumnName = "id")
    private UserEntity user;

    @Column(name = "create_id",insertable = false, updatable = false)
    private Integer createId;

    private String keyword;

    private Date updateTime;

    private Integer isCheck;

    private String memo;

    private Integer types;

    private String content;

    private Integer projectId;

}